package com.lzy.product.apis.impl;

import com.lzy.product.apis.ConditionServiceApi;
import com.lzy.product.dtos.ConditionDto;
import com.lzy.product.service.ConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/12/12.
 */
@Service
public class ConditionServiceApiImpl implements ConditionServiceApi {

    @Autowired
    ConditionService conditionService;

    @Override
    public Long insert(ConditionDto dto) {
        return conditionService.insert(dto);
    }

    @Override
    public Boolean update(ConditionDto dto) {
        return conditionService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return conditionService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return conditionService.remove(id);
    }

    @Override
    public ConditionDto findById(Long id) {
        return conditionService.findById(id);
    }

    @Override
    public List<ConditionDto> query(ConditionDto dto) {
        return conditionService.query(dto);
    }
}
